package com.theeviljames.syntax;

import java.util.Arrays;

public class Rule {

	private String lhs;
	private String[] rhs;
	
	public Rule(String lhs, String[] rhs) {
		this.lhs = lhs;
		this.rhs = rhs;
	}

	public String getLhs() {
		return lhs;
	}

	public void setLhs(String lhs) {
		this.lhs = lhs;
	}

	public String[] getRhs() {
		return rhs;
	}

	public void setRhs(String[] rhs) {
		this.rhs = rhs;
	}
	
	@Override
	public String toString() {
		return lhs + "::=" + Arrays.toString(rhs);
	}
}
